<div id = "banner-wrapper">
		<div class = "container">
			<div class = "row">
				<div id = "search-boxes">
					<?php echo $this->Form->create(false, array('role' => 'form'))?>
					<div class = "col-lg-3 col-lg-offset-1">
						<?php echo $this->Form->input('city', array(
							'type' => 'text', 
							'class' => 'form-control search-box', 
							'placeholder' => 'thành phố',
							'label' => false,
							'div' => false
						))?>
					</div>
					<div class = "col-lg-4">
						<?php echo $this->Form->input('shool', array(
							'type' => 'text', 
							'class' => 'form-control search-box', 
							'placeholder' => 'tên trường',
							'label' => false,
							'div' => false
						))?>
					</div>
					<div class = "col-lg-3">
						<?php echo $this->Form->input('level', array(
							'type' => 'text', 
							'class' => 'form-control search-box', 
							'placeholder' => 'cấp học',
							'label' => false,
							'div' => false
						))?>
					</div>
					<?php echo $this->Form->end()?>
				</div>
			</div>
			<div class = "row">
				<div id = "statistics">
					<div class = "col-lg-3 col-lg-offset-1">
						<span class = "statistic"><?php echo $countReview?> đánh giá</span>
					</div>
					<div class = "col-lg-4">
						<span class = "statistic"><?php echo $countSchool?> trường mầm non và tiểu học</span>
					</div>
					<div class = "col-lg-3">
						<span class = "statistic"><?php echo $countUser?> người sử dụng</span>
					</div>
				</div>
			</div>
		</div>
	</div> <!-- end banner -->
	
	<div id = "main">
		<div class = "container">
			<div class = "vertical_space">
				<span class = "school-list-title">Các trường tiêu điểm</span>
			</div>
			
			<?php foreach ($tieuDiemSchools as $school):?>
			
			<div class = "row">
				<div class = "col-lg-3">
					<?php echo $this->Html->link($school['School']['name'], array(
						'controller' => 'schools',
						'action' => 'detail',
						$school['School']['id']
					))?>
					<div class="star-rating rating-xs">
						<div class="rating-container rating-gly-star" data-content="">
							<div class="rating-stars" data-content="" style="width: <?php echo ($school['SchoolRank']['star_rate'] * 100) / 5?>%;"></div>
						</div>
					</div>				
				</div>
				<?php if ($school['Review']):?>
				<?php $review = $school['Review']?>
				<div class = "col-lg-9">
					<span class = "review-title"><?php echo $review['Review']['review_text']?></span>
					<br>
					<span>Phụ huynh bé <?php echo $review['Review']['kid_age']?> tuổi</span>
					<p>Pros <?php echo $review['Review']['review_pros']?></p>
					<p>Cons <?php echo $review['Review']['review_cons']?></p>
				</div>
				<?php endif;?>
			</div>
			
			<?php endforeach;?>
			
			<div class = "vertical_space">
				<span class = "school-list-title">Best Value for Money</span>
			</div>
			
			<?php foreach ($bestForMoneySchools as $school):?>
			
			<div class = "row">
				<div class = "col-lg-3">
					<?php echo $this->Html->link($school['School']['name'], array(
						'controller' => 'schools',
						'action' => 'detail',
						$school['School']['id']
					))?>
					<div class="star-rating rating-xs">
						<div class="rating-container rating-gly-star" data-content="">
							<div class="rating-stars" data-content="" style="width: <?php echo ($school['SchoolRank']['star_rate'] * 100) / 5?>%;"></div>
						</div>
					</div>				
				</div>
				<?php if ($school['Review']):?>
				<?php $review = $school['Review']?>
				<div class = "col-lg-9">
					<span class = "review-title"><?php echo $review['Review']['review_text']?></span>
					<br>
					<span>Phụ huynh bé <?php echo $review['Review']['kid_age']?> tuổi</span>
					<p>Pros <?php echo $review['Review']['review_pros']?></p>
					<p>Cons <?php echo $review['Review']['review_cons']?></p>
				</div>
				<?php endif;?>
			</div>
			
			<?php endforeach;?>
		</div>
	</div> <!-- end main -->